################################################################
# Fulguro
# Copyright (C) 2004 Christophe Clienti
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
################################################################
include ../../Makefile.include

MODULE       = swig_lang_scripts



ifeq ($(SWIG_LANG),python)
	DIR_SCRIPTS = python
	EXTENSION   = py
	UNINSTALL   = $(shell python/*.py)
else
	DIR_SCRIPTS = ruby
	EXTENSION   = rb
	UNINSTALL   = $(shell ruby/*.rb)
endif


.PHONY: doc

doc: 

all:
	@echo -e "\n-> Copying $(SWIG_LANG) native scripts...\n"
	mkdir -p ../../lib/$(SWIG_LANG)Fulguro/fulguro
	cp $(DIR_SCRIPTS)/*.$(EXTENSION) ../../lib/$(SWIG_LANG)Fulguro/fulguro
clean:
	@echo -e "\n-> Deleting $(SWIG_LANG) temp files ...\n"
	@rm -rf *~ *# *.so *.o *_wrap.c $(MODULE).py *.pyc *.png *.pgm
